//**********链接邀请的密文***********/;
import request from '@/utils/request.js';
const BASE_URL=process.env.VUE_APP_ROOT_URL === './'?'':'/user-centre'
/**
 * 详情
 * @doc http://ms-dev.hancode.com/user-centre/v2/api-docs
 * ********
 * @returns
 * code:'', // 	类型:integer 非必填
 * data:object
  * {
  * cipherText:'', //密文 	类型:string 非必填,
  * expiredAt:'', //过期时间 	类型:string 非必填,
  * id:'', //$column.comments 	类型:integer 非必填,
  * tenantId:'', //企业ID 	类型:integer 非必填
  * }, // 	类型:undefined 非必填
 * localeCode:'', // 	类型:string 非必填
 * message:'', // 	类型:string 非必填
 * messageData:'', // 	类型:array 非必填
 * **********************
 * import { getHmlinkinvitecipherInfo } from '@/apis/user-centre/HmLinkInviteCipherController.js'
 */
export function getHmlinkinvitecipherInfo(config={}){
  return request({
    method: 'get',
    url: BASE_URL+`/api/hm-link-invite-cipher/info`,
    ...config,
  }) 
}

/**
 * 接受邀请
 * @doc http://ms-dev.hancode.com/user-centre/v2/api-docs
 * params_in_path 参数 
 * cipher:'', //cipher 必填
 * @returns
 * code:'', //执行结果状态码 	类型:integer 必填
 * data:'', //返回正确结果时携带的数据 	类型:string 非必填
 * message:'', //执行结果信息 	类型:string 必填
 * messageData:'', //错误信息填充字段 	类型:array 非必填
 * **********************
 * import { postHmlinkinvitecipherByCipher } from '@/apis/user-centre/HmLinkInviteCipherController.js'
 */
export function postHmlinkinvitecipherByCipher(params_in_path, config={}){
  return request({
    method: 'post',
    url: BASE_URL+`/api/hm-link-invite-cipher/${params_in_path.cipher}`,
    ...config,
  }) 
}